﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using kxcxw.Data.Common;

namespace kxcxw.Data.Entities
{
    /// <summary>
    /// 促销活动
    /// </summary>
    public class Activity
    {

        public string ActivityId { get; set; }

        [Required]
        [Display(Name = "活动标题")]
        public string Title { get; set; }

        [Required]
        [Display(Name = "网店/实体店")]
        public int ShopType { get; set; }

        [Required]
        [Display(Name = "商家名")]
        public string BusinessName { get; set; }

        [Required]
        [Display(Name = "地址")]
        public string Address { get; set; }

        [Display(Name = "客服电话")]
        public string Phone { get; set; }

        [Required]
        [DataType(DataType.Url)]
        [UrlExpression]
        [Display(Name = "活动网址")]
        public string ShopUrl { get; set; }

        [Required(ErrorMessage = "请选择活动图片")]
        [Display(Name = "图片")]
        public string ImageName { get; set; }

        [Required]
        [DateExpression]
        [Display(Name = "开始日期")]
        public Nullable<System.DateTime> StartDate { get; set; }

        [DateExpression]
        [Display(Name = "结束日期")]
        public Nullable<System.DateTime> EndDate { get; set; }

        [Display(Name = "活动详情")]
        public string Desception { get; set; }

        [Display(Name = "状态")]
        public int Status { get; set; }

        [Required]
        [Display(Name = "发布者ID")]
        public string UserID { get; set; }

        [Required]
        [Display(Name = "发布日期")]
        public System.DateTime CreateDate { get; set; }

        public virtual SysUserInfo SysUserInfo { get; set; }

        
    }//class
}
